package com.lhy.admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;


/**
 * <p>
 * 模型
 * </p>
 * @author 86159
 * @date 2021-05-22 16:50:22
 * Copyright (c) 2021 
 */
@Data
@TableName("t_role_permission")
@Schema(description="")
public class RolePermission implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色ID
     */
    @Schema(description= "角色ID")
    @TableField("role_id")
    private Integer roleId;

    @TableField("perm_id")
    private Integer permId;

    /**
     * 权限标识
     */
    @Schema(description= "权限标识")
    @TableField("perm")
    private String perm;


    public static final String ID = "id";
    public static final String ROLE_ID = "role_id";
    public static final String PERM_ID = "perm_id";
    public static final String PERM = "perm";

}
